
var Member = {saveFriendTag:function (B) {
	if (!B.length) {
		return;
	}
	var A = new Prompt();
	var C = "<table border=\"0\"><tbody><tr><td width=\"80\" align=\"right\">\u539f\u5206\u7ec4:</td><td>" + B + "</td><td/></tr><tr><td align=\"right\">\u65b0\u5206\u7ec4:</td><td><input type=\"text\" maxlength=\"7\" size=\"20\" name=\"txtTags\" id=\"txtTags\"/></td></tr></tbody></table>";
	A.confirm(["\u4fee\u6539\u597d\u53cb\u5206\u7ec4", C], {onReturn:function (E) {
		if (E) {
			var F = $("txtTags").get("value") || "";
			var D = "do=sft&c=" + B + "&b=" + F;
			new AjaxReq({url:"/friend.v", method:"post", data:D, onRequest:function () {
				Mbox.openLite("<p class=\"Doing\">\u6b63\u5728\u5904\u7406\uff0c\u8bf7\u7a0d\u5019....</p>", 200, 30);
			}, onSuccess:function (H) {
				if (H && H.code == 100) {
					Mbox.close();
					$AuthBoxShow("\u597d\u53cb\u5206\u7ec4");
				} else {
					if (H.code == 200) {
						var G = H.msg.refresh;
						if (G) {
							window.location.reload(true);
						}
					} else {
						Mbox.openLite("<div class=\"Doing\">" + H.msg.html + "</div>", 280, "auto");
						setTimeout(function () {
							Mbox.close();
						}, 2000);
					}
				}
			}, onError:function () {
				Mbox.openLite("<p class=\"Doing\">\u64cd\u4f5c\u5931\u8d25\uff0c\u8bf7<a href=\"#\" onclick=\"Mbox.close();return false\" class=\"B\">\u8fd4\u56de</a></p>", 200, 30);
			}}).send();
		}
	}});
}, editFriendInfo:function (B) {
	if (!B) {
		return;
	}
	var A = "do=efi&a=" + B;
	new AjaxReq({url:"/friend.v", method:"post", data:A, onRequest:function () {
		Mbox.openLite("<p class=\"Doing\">\u6b63\u5728\u5904\u7406\uff0c\u8bf7\u7a0d\u5019....</p>", 200, 30);
	}, onSuccess:function (H) {
		if (H && H.code == 100) {
			Mbox.close();
			$AuthBoxShow("\u597d\u53cb\u72b6\u6001");
		} else {
			if (H.code == 200) {
				Mbox.close();
				var D = new Prompt();
				var G = [], C = H.msg.friendTag || [];
				var F = H.msg.issub ? "checked=checked" : "";
				G.push("<p>\u4fee\u6539<b>" + H.msg.username + "</b>\u7684\u72b6\u6001\uff1a</p>");
				G.push("<p>\u5206 \u7ec4: <select id=\"ddlfriendTag\" name=\"ddlfriendTag\"><option value=\"\">\u65e0\u5206\u7ec4</option>");
				for (var E = 0; E < C.length; E++) {
					if (C[E] != "") {
						G.push("<option value=" + C[E] + " " + (H.msg.nowtag == C[E] ? " selected " : "") + "  >" + C[E] + "</option>");
					}
				}
				G.push("</select></p>");
				G.push("<p><input type=\"checkbox\" " + F + " id=\"chkIsSubscription\" name=\"chkIsSubscription\"/>\u5728\u60c5\u62a5\u7ad9\u5185\u8ba2\u9605\u597d\u53cb</p>");
				D.confirm(["\u4fee\u6539\u597d\u53cb\u72b6\u6001", G.join("")], {onReturn:function (I) {
					if (I) {
						Member.editFriendInfoSubmit(B, $("ddlfriendTag").get("value"), $("chkIsSubscription").checked ? 1 : 0);
					}
				}});
			} else {
				Mbox.openLite("<div class=\"Doing\">" + H.msg.html + "</div>", 280, "auto");
				setTimeout(function () {
					Mbox.close();
				}, 2000);
			}
		}
	}, onError:function () {
		Mbox.openLite("<p class=\"Doing\">\u64cd\u4f5c\u5931\u8d25\uff0c\u8bf7<a href=\"#\" onclick=\"Mbox.close();return false\" class=\"B\">\u8fd4\u56de</a></p>", 200, 30);
	}}).send();
}, editFriendInfoSubmit:function (C, B, D) {
	if (!C) {
		return;
	}
	var A = "do=efis&a=" + C + "&b=" + B + "&c=" + D;
	new AjaxReq({url:"/friend.v", method:"post", data:A, onRequest:function () {
		Mbox.openLite("<p class=\"Doing\">\u6b63\u5728\u5904\u7406\uff0c\u8bf7\u7a0d\u5019....</p>", 200, 30);
	}, onSuccess:function (F) {
		if (F && F.code == 100) {
			Mbox.close();
			$AuthBoxShow("\u597d\u53cb\u72b6\u6001");
		} else {
			if (F.code == 200) {
				var E = F.msg.refresh;
				if (E) {
					window.location.reload(true);
				}
			} else {
				Mbox.openLite("<div class=\"Doing\">" + F.msg.html + "</div>", 280, "auto");
				setTimeout(function () {
					Mbox.close();
				}, 2000);
			}
		}
	}, onError:function () {
		Mbox.openLite("<p class=\"Doing\">\u64cd\u4f5c\u5931\u8d25\uff0c\u8bf7<a href=\"#\" onclick=\"Mbox.close();return false\" class=\"B\">\u8fd4\u56de</a></p>", 200, 30);
	}}).send();
}, delFriend:function (B) {
	if (!B) {
		return;
	}
	var A = new Prompt();
	A.confirm(["\u5220\u9664\u597d\u53cb", "\u786e\u5b9a\u8981\u5220\u9664\u6b64\u597d\u53cb\u5417\uff1f"], {onReturn:function (D) {
		if (D) {
			var C = "do=df&a=" + B;
			new AjaxReq({url:"/friend.v", method:"post", data:C, onRequest:function () {
				Mbox.openLite("<p class=\"Doing\">\u6b63\u5728\u5904\u7406\uff0c\u8bf7\u7a0d\u5019....</p>", 200, 30);
			}, onSuccess:function (F) {
				if (F && F.code == 100) {
					Mbox.close();
					$AuthBoxShow("\u5220\u9664\u597d\u53cb");
				} else {
					Mbox.openLite("<div class=\"Doing\">" + F.msg.html + "</div>", 280, "auto");
					setTimeout(function () {
						Mbox.close();
					}, 2000);
					var E = F.msg.refresh;
					if (E) {
						window.location.reload(true);
					}
				}
			}, onError:function () {
				Mbox.openLite("<p class=\"Doing\">\u64cd\u4f5c\u5931\u8d25\uff0c\u8bf7<a href=\"#\" onclick=\"Mbox.close();return false\" class=\"B\">\u8fd4\u56de</a></p>", 200, 30);
			}}).send();
		}
	}});
}, addFriend:function (B) {
	if (!B) {
		return;
	}
	var A = "do=af&a=" + B;
	new AjaxReq({url:"/friend.v", method:"post", data:A, onRequest:function () {
		Mbox.openLite("<p class=\"Doing\">\u6b63\u5728\u5904\u7406\uff0c\u8bf7\u7a0d\u5019....</p>", 200, 30);
	}, onSuccess:function (G) {
		if (G && G.code == 100) {
			Mbox.close();
			$AuthBoxShow("\u6dfb\u52a0\u597d\u53cb");
		} else {
			if (G.code == 200) {
				Mbox.close();
				var D = new Prompt();
				var F = [], C = G.msg.friendTag || [];
				var I = G.msg.iscode;
				var H = G.msg.username;
				F.push("<p>\u52a0\u5165\u5206\u7ec4\uff1a<select id=\"ddlfriendGroup\" name=\"ddlfriendGroup\"><option value=\"\">\u65e0\u5206\u7ec4</option>");
				for (var E = 0; E < C.length; E++) {
					if (C[E] != "") {
						F.push("<option value=" + C[E] + ">" + C[E] + "</option>");
					}
				}
				F.push("</select></p><br><br>");
				F.push("<p>\u7ed9<b>" + H + "</b>\u7559\u53e5\u8bdd\u5427\uff01<br/><textarea cols=\"32\" rows=\"5\" id=\"AjaxFriendMsg\"></textarea></p><br><br>");
				F.push("<p><input type=\"checkbox\" checked=\"checked\" name=\"AjaxIsSub\" id=\"AjaxIsSub\"/>\u5728\u60c5\u62a5\u7ad9\u5185\u8ba2\u9605\u597d\u53cb</p><br><br>");
				if (I) {
					F.push("<p>\u8bf7\u8f93\u5165\u9a8c\u8bc1\u7801:<br/><input type=\"text\" style=\"font-size: 20px;\" id=\"AjaxFriendVC\" maxlength=\"4\" size=\"4\"/><img id=\"ValidateCodeImg\" onclick=\"this.src=\"/ValidateCode18.jpg?\" + Math.floor(Math.random()*1001);\" style=\"cursor: pointer;\" title=\"\u770b\u4e0d\u6e05\u695a?\u8bf7\u70b9\u51fb!\" src=\"/ValidateCode18.jpg\"/></p>");
				}
				D.confirm(["\u5c06" + H + "\u52a0\u4e3a\u4f60\u7684\u597d\u53cb", F.join("")], {onReturn:function (J) {
					if (J) {
						Member.addFriendsubmit(B, $("ddlfriendGroup").get("value"), $("AjaxFriendMsg").get("value"), $("AjaxIsSub").checked ? 1 : 0, $("AjaxFriendVC") ? $("AjaxFriendVC").get("value") : "");
					}
				}});
			} else {
				Mbox.openLite("<div class=\"Doing\">" + G.msg + "</div>", 280, "auto");
				setTimeout(function () {
					Mbox.close();
				}, 2000);
			}
		}
	}, onError:function () {
		Mbox.openLite("<p class=\"Doing\">\u64cd\u4f5c\u5931\u8d25\uff0c\u8bf7<a href=\"#\" onclick=\"Mbox.close();return false\" class=\"B\">\u8fd4\u56de</a></p>", 200, 30);
	}}).send();
}, addFriendsubmit:function (C, B, F, D, E) {
	if (!C) {
		return;
	}
	var A = "do=afs&a=" + C + "&b=" + B + "&c=" + F + "&d=" + D + "&e=" + E;
	new AjaxReq({url:"/friend.v", method:"post", data:A, onRequest:function () {
		Mbox.openLite("<p class=\"Doing\">\u6b63\u5728\u5904\u7406\uff0c\u8bf7\u7a0d\u5019....</p>", 200, 30);
	}, onSuccess:function (G) {
		if (G && G.code == 100) {
			Mbox.close();
			$AuthBoxShow("\u6dfb\u52a0\u597d\u53cb");
		} else {
			if (G.code == 200) {
				Mbox.openLite("<div class=\"Doing\">" + G.msg + "</div>", 280, "auto");
				setTimeout(function () {
					Mbox.close();
				}, 2000);
			} else {
				Mbox.openLite("<div class=\"Doing\">" + G.msg + "</div>", 280, "auto");
				setTimeout(function () {
					Mbox.close();
				}, 2000);
			}
		}
	}, onError:function () {
		Mbox.openLite("<p class=\"Doing\">\u64cd\u4f5c\u5931\u8d25\uff0c\u8bf7<a href=\"#\" onclick=\"Mbox.close();return false\" class=\"B\">\u8fd4\u56de</a></p>", 200, 30);
	}}).send();
}, delFriends:function (B) {
	var A = new Prompt();
	if (B == "") {
		A.alert(["\u5220\u9664\u597d\u53cb", "\u8bf7\u9009\u62e9\u60a8\u8981\u5220\u9664\u7684\u597d\u53cb\uff01"]);
		return;
	}
	A.confirm(["\u5220\u9664\u597d\u53cb", "\u786e\u5b9a\u8981\u5220\u9664\u9009\u4e2d\u7684\u597d\u53cb\u5417\uff1f"], {onReturn:function (D) {
		if (D) {
			var C = "do=dfs&a=" + B;
			new AjaxReq({url:"/friend.v", method:"post", data:C, onRequest:function () {
				Mbox.openLite("<p class=\"Doing\">\u6b63\u5728\u5904\u7406\uff0c\u8bf7\u7a0d\u5019....</p>", 200, 30);
			}, onSuccess:function (F) {
				if (F && F.code == 100) {
					Mbox.close();
					$AuthBoxShow("\u5220\u9664\u597d\u53cb");
				} else {
					if (F.code == 200) {
						var E = F.msg.refresh;
						if (E) {
							window.location.reload(true);
						}
					} else {
						Mbox.openLite("<div class=\"Doing\">" + F.msg + "</div>", 280, "auto");
						setTimeout(function () {
							Mbox.close();
						}, 2000);
					}
				}
			}, onError:function () {
				Mbox.openLite("<p class=\"Doing\">\u64cd\u4f5c\u5931\u8d25\uff0c\u8bf7<a href=\"#\" onclick=\"Mbox.close();return false\" class=\"B\">\u8fd4\u56de</a></p>", 200, 30);
			}}).send();
		}
	}});
}, setTag:function (E, D) {
	var A = new Prompt();
	if (D == "") {
		A.alert(["\u52a0\u5165\u5206\u7ec4", "\u8bf7\u9009\u62e9\u60a8\u8981\u52a0\u5165\u5206\u7ec4\u7684\u597d\u53cb\uff01"]);
		return;
	}
	var B = "do=sts&a=" + E + "&b=" + D;
	if (E == -99) {
		var C = "<table border=\"0\"><tbody><tr><td align=\"right\">\u65b0\u5206\u7ec4:</td><td><input type=\"text\" maxlength=\"7\" size=\"20\" name=\"txtTags\" id=\"txtTags\"/></td></tr></tbody></table>";
		A.confirm(["\u65b0\u5efa\u597d\u53cb\u5206\u7ec4", C], {onReturn:function (F) {
			if (F) {
				var G = $("txtTags").get("value") || "";
				Member.updatetags(G, D);
			}
		}});
	} else {
		Member.updatetags(E, D);
	}
}, updatetags:function (D, C) {
	var A = new Prompt();
	if (C == "") {
		A.alert(["\u52a0\u5165\u5206\u7ec4", "\u8bf7\u9009\u62e9\u60a8\u8981\u52a0\u5165\u5206\u7ec4\u7684\u597d\u53cb\uff01"]);
		return;
	}
	var B = "do=sts&a=" + D + "&b=" + C;
	new AjaxReq({url:"/friend.v", method:"post", data:B, onRequest:function () {
		Mbox.openLite("<p class=\"Doing\">\u6b63\u5728\u5904\u7406\uff0c\u8bf7\u7a0d\u5019....</p>", 200, 30);
	}, onSuccess:function (E) {
		if (E && E.code == 100) {
			Mbox.close();
			Mbox.openLite("<p class=\"Doing\">\u64cd\u4f5c\u6210\u529f!.</p>", 200, 30);
		} else {
			Mbox.openLite("<div class=\"Doing\">" + E.msg + "</div>", 280, "auto");
			setTimeout(function () {
				Mbox.close();
			}, 2000);
			window.location.reload(true);
		}
	}, onError:function () {
		Mbox.openLite("<p class=\"Doing\">\u64cd\u4f5c\u5931\u8d25\uff0c\u8bf7<a href=\"#\" onclick=\"Mbox.close();return false\" class=\"B\">\u8fd4\u56de</a></p>", 200, 30);
	}}).send();
}, setSub:function (B, D) {
	var A = new Prompt();
	if (D == "") {
		A.alert(["\u52a0\u5165\u5206\u7ec4", "\u8bf7\u9009\u62e9\u60a8\u8981\u8bbe\u7f6e\u8ba2\u9605\u7684\u597d\u53cb\uff01"]);
		return;
	}
	var C = "do=sf&a=" + B + "&b=" + D;
	new AjaxReq({url:"/friend.v", method:"post", data:C, onRequest:function () {
		Mbox.openLite("<p class=\"Doing\">\u6b63\u5728\u5904\u7406\uff0c\u8bf7\u7a0d\u5019....</p>", 200, 30);
	}, onSuccess:function (E) {
		if (E && E.code == 100) {
			Mbox.close();
			Mbox.openLite("<p class=\"Doing\">\u64cd\u4f5c\u6210\u529f!.</p>", 200, 30);
		} else {
			Mbox.openLite("<div class=\"Doing\">" + E.msg + "</div>", 280, "auto");
			setTimeout(function () {
				Mbox.close();
			}, 2000);
			window.location.reload(true);
		}
	}, onError:function () {
		Mbox.openLite("<p class=\"Doing\">\u64cd\u4f5c\u5931\u8d25\uff0c\u8bf7<a href=\"#\" onclick=\"Mbox.close();return false\" class=\"B\">\u8fd4\u56de</a></p>", 200, 30);
	}}).send();
}, delReplay:function (B, D, C) {
	var A = new Prompt();
	A.confirm(["\u5c4f\u853d\u56de\u5e94\u66f4\u65b0", "\u91cd\u65b0\u53c2\u4e0e\u8fd9\u6761\u56de\u5e94\u65f6\u5b83\u4f1a\u518d\u6b21\u51fa\u73b0\u5728\u5217\u8868\u91cc\u3002<br><strong>\u786e\u8ba4\u5c4f\u853d\u8fd9\u6761\u56de\u5e94\u5417\uff1f</strong>"], {onReturn:function (F) {
		if (F) {
			var E = "do=sdfn&a=" + B + "&b=" + D + "&c=" + C;
			new AjaxReq({url:"/follownote.v", method:"post", data:E, onRequest:function () {
				Mbox.openLite("<p class=\"Doing\">\u6b63\u5728\u5904\u7406\uff0c\u8bf7\u7a0d\u5019....</p>", 200, 30);
			}, onSuccess:function (G) {
				if (G && G.code == 100) {
					Mbox.close();
					$AuthBoxShow("\u5c4f\u853d\u56de\u5e94\u66f4\u65b0");
				} else {
					if (G.code == 200) {
						Mbox.openLite("<div class=\"Doing\">" + G.msg + "</div>", 280, "auto");
						setTimeout(function () {
							Mbox.close();
						}, 2000);
						window.location.reload(true);
					} else {
						Mbox.openLite("<div class=\"Doing\">" + G.msg + "</div>", 280, "auto");
						setTimeout(function () {
							Mbox.close();
						}, 2000);
					}
				}
			}, onError:function () {
				Mbox.openLite("<p class=\"Doing\">\u64cd\u4f5c\u5931\u8d25\uff0c\u8bf7<a href=\"#\" onclick=\"Mbox.close();return false\" class=\"B\">\u8fd4\u56de</a></p>", 200, 30);
			}}).send();
		}
	}});
}, addBlock:function (B) {
	var A = new Prompt();
	if (!B || B == "" || B == "\u8bf7\u8f93\u5165\u6635\u79f0") {
		A.alert(["\u52a0\u5165\u9ed1\u540d\u5355", "\u8bf7\u8f93\u5165\u7528\u6237\u6635\u79f0\uff01"]);
		return;
	}
	A.confirm(["\u52a0\u5165\u9ed1\u540d\u5355", "<strong>\u771f\u7684\u8981\u5c06\"" + B + "\"\u8e22\u5230\u9ed1\u540d\u5355\u91cc\u5417\uff1f</strong>"], {onReturn:function (D) {
		if (D) {
			var C = "do=ab&a=" + B;
			new AjaxReq({url:"/profile.v", method:"post", data:C, onRequest:function () {
				Mbox.openLite("<p class=\"Doing\">\u6b63\u5728\u5904\u7406\uff0c\u8bf7\u7a0d\u5019....</p>", 200, 30);
			}, onSuccess:function (F) {
				if (F && F.code == 100) {
					Mbox.close();
					$AuthBoxShow("\u52a0\u5165\u9ed1\u540d\u5355");
				} else {
					if (F.code == 200) {
						Mbox.openLite("<div class=\"Doing\">" + F.msg.html + "</div>", 280, "auto");
						setTimeout(function () {
							Mbox.close();
						}, 2000);
						var E = F.msg.refresh;
						if (E) {
							window.location.reload(true);
						}
					} else {
						Mbox.openLite("<div class=\"Doing\">" + F.msg + "</div>", 280, "auto");
						setTimeout(function () {
							Mbox.close();
						}, 2000);
					}
				}
			}, onError:function () {
				Mbox.openLite("<p class=\"Doing\">\u64cd\u4f5c\u5931\u8d25\uff0c\u8bf7<a href=\"#\" onclick=\"Mbox.close();return false\" class=\"B\">\u8fd4\u56de</a></p>", 200, 30);
			}}).send();
		}
	}});
}, delBlock:function (B, C) {
	if (!B) {
		return;
	}
	var A = new Prompt();
	A.confirm(["\u64a4\u9500\u9ed1\u540d\u5355", "<strong>\u771f\u7684\u8981\u5c06" + C + "\u4ece\u60a8\u7684\u9ed1\u540d\u5355\u4e2d\u64a4\u9500\u5417\uff1f</strong>"], {onReturn:function (E) {
		if (E) {
			var D = "do=db&a=" + B;
			new AjaxReq({url:"/profile.v", method:"post", data:D, onRequest:function () {
				Mbox.openLite("<p class=\"Doing\">\u6b63\u5728\u5904\u7406\uff0c\u8bf7\u7a0d\u5019....</p>", 200, 30);
			}, onSuccess:function (G) {
				if (G && G.code == 100) {
					Mbox.close();
					$AuthBoxShow("\u64a4\u9500\u9ed1\u540d\u5355");
				} else {
					if (G.code == 200) {
						Mbox.openLite("<div class=\"Doing\">" + G.msg.html + "</div>", 280, "auto");
						setTimeout(function () {
							Mbox.close();
						}, 2000);
						var F = G.msg.refresh;
						if (F) {
							window.location.reload(true);
						}
					} else {
						Mbox.openLite("<div class=\"Doing\">" + G.msg + "</div>", 280, "auto");
						setTimeout(function () {
							Mbox.close();
						}, 2000);
					}
				}
			}, onError:function () {
				Mbox.openLite("<p class=\"Doing\">\u64cd\u4f5c\u5931\u8d25\uff0c\u8bf7<a href=\"#\" onclick=\"Mbox.close();return false\" class=\"B\">\u8fd4\u56de</a></p>", 200, 30);
			}}).send();
		}
	}});
}};
var Bookmark = {UpdateBookmark:function () {
	var A = $("MyBookmark");
	if (A != null) {
		var B = "<div class=\"UpdateBM\"><div class=\"bmTitle\"><span class=\"Left\">\u6dfb\u52a0\u60a8\u559c\u7231\u7684\u7f51\u5740\uff1a</span><span class=\"Right\"><a href=\"#\" onclick=\"this.blur();Bookmark.UpdateBMCancel();Bookmark.ShowDivBMList();return false;\" title=\"\u5173\u95ed\u7f16\u8f91\" ><img src=\"http://i1.dpfile.com/Comm/Images/KillBtn.gif\" border=\"0\" /></a></span></div><div class=\"bmValue\"><input type=\"text\" value=\"http://\" size=\"40\" maxlength=\"50\" id=\"url\" /></div><span id=\"urlError\"></span><div class=\"bmTitle\">\u4e66\u7b7e\u540d\uff1a</div><div><input type=\"text\" value=\"\" size=\"40\" maxlength=\"20\" id=\"bm\" /></div><span id=\"bmError\"></span><div><input type=\"button\" value=\"\u6dfb\u52a0\" onclick=\"this.blur();Bookmark.UpdateBMSubmit();return false;\" />&nbsp;<input type=\"button\" value=\"\u5173\u95ed\" onclick=\"this.blur();Bookmark.UpdateBMCancel();Bookmark.ShowDivBMList();return false;\" /></div><span id=\"bmList\"></span></div>";
		A.set("html", B);
	}
	Bookmark.ShowBMList();
}, UpdateBMCancel:function () {
	var A = $("MyBookmark");
	if (A != null) {
		A.set("html", "");
	}
}, ShowBMList:function () {
	var A = $("urlError");
	new AjaxReq({url:"/member.v", method:"post", callType:"json", data:{"do":"showuserlink"}, onSuccess:function (C) {
		if (C.code == 200) {
			var B = $("divBMList");
			if (B != null) {
				B.set("html", C.msg.html);
			}
		} else {
			if (A != null) {
				A.set("html", "<div class=\"Doing\">\u83b7\u53d6\u4e66\u7b7e\u5217\u8868\u5931\u8d25\uff01\u8bf7\u7a0d\u540e\u518d\u8bd5</div>");
			}
		}
		Mbox.close();
	}}).send();
}, UpdateBMSubmit:function () {
	var E = $("urlError");
	var D = $("url");
	D.addEvent("blur", function () {
		if (!$isMatch(D, $isMatch.MORE, 0, true)) {
			E.set("html", "<div class=\"Error\">\u7f51\u5740\u4e0d\u80fd\u4e3a\u7a7a\uff01</div>");
			D.store("valid", false);
		} else {
			if (!$isRegex(D, $isRegex.URL)) {
				E.set("html", "<div class=\"Error\">\u7f51\u5740\u975e\u6cd5\uff0c\u8bf7\u91cd\u65b0\u8f93\u5165!</div>");
				D.store("valid", false);
			} else {
				E.set("html", "");
				D.store("valid", true);
			}
		}
	});
	var C = $("bm");
	var B = $("bmError");
	C.addEvent("blur", function () {
		if (!$isMatch(C, $isMatch.MORE, 0, true)) {
			B.set("html", "<div class=\"Error\">\u4e66\u7b7e\u540d\u4e0d\u80fd\u4e3a\u7a7a\uff01</div>");
			C.store("valid", false);
		} else {
			B.set("html", "");
			C.store("valid", true);
		}
	});
	var A = function () {
		var F = true;
		[D].each(function (G) {
			G.fireEvent("blur");
			if (!G.retrieve("valid")) {
				F = false;
			}
		});
		[C].each(function (G) {
			G.fireEvent("blur");
			if (!G.retrieve("valid")) {
				F = false;
			}
		});
		return F;
	};
	if (A()) {
		new AjaxReq({url:"/member.v", method:"post", callType:"json", data:{"do":"addurl", url:D.get("value"), bm:C.get("value")}, onSuccess:function (F) {
			if (F.code == 200) {
				D.value = "http://";
				C.value = "";
				Bookmark.ShowBMList();
			} else {
				objTmp.set("html", "<div class=\"Doing\">\u6dfb\u52a0\u5931\u8d25\uff01\u8bf7\u7a0d\u540e\u518d\u8bd5</div>");
			}
		}}).send();
	}
}, ShowDivBMList:function () {
	var A = $("urlError");
	new AjaxReq({url:"/member.v", method:"post", callType:"json", data:{"do":"showdivuserlink"}, onSuccess:function (C) {
		if (C.code == 200) {
			var B = $("divBMList");
			if (B != null) {
				B.set("html", C.msg.html);
			}
		} else {
			if (A != null) {
				A.set("html", "<div class=\"Doing\">\u83b7\u53d6\u4e66\u7b7e\u5217\u8868\u5931\u8d25\uff01\u8bf7\u7a0d\u540e\u518d\u8bd5</div>");
			}
		}
		Mbox.close();
	}}).send();
}, DelBM:function (B) {
	var A = $("urlError");
	new AjaxReq({url:"/member.v", method:"post", callType:"json", data:{"do":"deluserlink", id:B}, onSuccess:function (C) {
		if (C.code == 200) {
			Bookmark.ShowBMList();
		} else {
			if (A != null) {
				A.set("html", "<div class=\"Doing\">\u5220\u9664\u4e66\u7b7e\u5931\u8d25\uff01\u8bf7\u7a0d\u540e\u518d\u8bd5</div>");
			}
		}
		Mbox.close();
	}}).send();
}};

